package com.hl.service.serviceImpl;

import com.hl.domain.Questionsreply;
import com.hl.mapper.QuestionsreplyMapper;
import com.hl.service.QuestionsReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class QuestionsReplyServiceImpl implements QuestionsReplyService {
    @Autowired
    private QuestionsreplyMapper questionsreplyMapper;
    @Override
    public List<Questionsreply> selectAll() {
        return questionsreplyMapper.selectAll();
    }

    @Override
    public List<Questionsreply> selectLike(String title) {
        return questionsreplyMapper.selectLike(title);
    }

    @Override
    public int insert(Questionsreply questionsreply) {
        return questionsreplyMapper.insert(questionsreply);
    }

    @Override
    public int update(Questionsreply questionsreply) {
        return questionsreplyMapper.updateByPrimaryKey(questionsreply);
    }

    @Override
    public int delete(Long id) {
        return questionsreplyMapper.deleteByPrimaryKey(id);
    }
}
